package models

import (
	"gorm.io/gorm"
)

type AssetsManagement struct {
	gorm.Model

	AssetsUUID string `json:"assets_uuid" gorm:"type:varchar(255)"`

	AssetsName  string `json:"assets_name"`
	Port        *int   `json:"port"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	Host        string `json:"host"`
	Status      *int   `json:"status"`
	AssetsClass string `json:"assets_class"`
}

type AssetsManagementList struct {
	Items []AssetsManagement
	Total int64 `json:"total"`
}

type AssetsManagementInfo struct {
	gorm.Model
	AssetsManagementUUID string `json:"assets_management_uuid" gorm:"type:varchar(255)"`
	Host                 string `json:"host" gorm:"type:varchar(255)"`
	Percent   string `json:"percent"`
	User      float64
	System    float64
	Idle      float64
	Nice      float64
	Iowait    float64
	Irq       float64
	Softirq   float64
	Steal     float64
	Guest     float64
	GuestNice float64
}
